Functional Lung avoidance planning